package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷对象 exam_paper
 * 
 * @author tyro
 * @date 2025-05-21
 */
public class ExamPaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 试卷ID */
    private Long id;

    /** 试卷标题 */
    @Excel(name = "试卷标题")
    private String title;

    /** 教师ID（发布者ID） */
    @Excel(name = "教师ID", readConverterExp = "发=布者ID")
    private Long teacherId;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long classId;

    /** 总分 */
    @Excel(name = "总分")
    private Long totalScore;

    /** 考试时长（分钟） */
    @Excel(name = "考试时长", readConverterExp = "分=钟")
    private Long duration;

    /** 试卷描述 */
    @Excel(name = "试卷描述")
    private String description;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态：0-未开始，1-进行中，2-已结束 */
    @Excel(name = "状态：0-未开始，1-进行中，2-已结束")
    private Long status;

    /** AI生成的提示词 */
    @Excel(name = "AI生成的提示词")
    private String aiPrompt;

    /** AI原始回复内容 */
    @Excel(name = "AI原始回复内容")
    private String aiRawResponse;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }
    public void setTotalScore(Long totalScore) 
    {
        this.totalScore = totalScore;
    }

    public Long getTotalScore() 
    {
        return totalScore;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAiPrompt(String aiPrompt) 
    {
        this.aiPrompt = aiPrompt;
    }

    public String getAiPrompt() 
    {
        return aiPrompt;
    }
    public void setAiRawResponse(String aiRawResponse) 
    {
        this.aiRawResponse = aiRawResponse;
    }

    public String getAiRawResponse() 
    {
        return aiRawResponse;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("teacherId", getTeacherId())
            .append("classId", getClassId())
            .append("totalScore", getTotalScore())
            .append("duration", getDuration())
            .append("description", getDescription())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("aiPrompt", getAiPrompt())
            .append("aiRawResponse", getAiRawResponse())
            .toString();
    }
}
